<template>
	<movable-area style="background-color: #f3f6f6;">
		<view class="index">
			<!-- 导航 -->
			<view class="nav" :style="'height:' + navHeihgt + 'px'">
				<view class="user-status-bar">
					<view class="status-bar" :style="navStyle">
						<view class="status-bar-height" :style="'height:' + statusBarHeight + 'px'"></view>
						<view class="status-bar-title">
							<view class="l" @click="selectAddress">
								<view class="address text-overflow">{{ address ? address : '点击获取定位' }}</view>
								<text class="iconfont icon-dizhi"></text>
							</view>

							<!-- <view class="" @click="handleStartRecord">开始录音</view>
							<view class="" @click="handleStop">结束录音</view>
							<view @click="handleTel">拨打电话</view>
							<Model :bol="flag1" @handleFlag="handleFlag" :auth="auth"></Model> -->

							<view class="r" @click="goNews">
								<text :class="['iconfont', 'icon-xiaoxitongzhi', newsStatus ? 'news' :'']"></text>
								<text>消息</text>
							</view>
						</view>
					</view>
					<view class="status-bar-blur" :style="'height:' + navBarHeight + 'px'" style="width: 100%;"></view>
				</view>
				<!-- <view class="" v-for="(item, index) in info" :key="index">
					{{item}}
				</view> -->
				<view class="index-swiper" :style="swiperStyle">
					<uni-swiper-dot :info="info" :current="current" field="content" :mode="mode" class="swiper">
						<swiper v-if="info.length>0 " class="swiper-box" @change="change" circular="true"
							:autoplay="true">
							<swiper-item v-for="(item, index) in info" :key="index">
								<view class="swiper-item">
									<image :src="item" class="swiper-img" @click="guide()"></image>
								</view>
							</swiper-item>
						</swiper>
					</uni-swiper-dot>
				</view>
			</view>
			<!-- 注意这个refresh组件的背景色 -->
			<refresh @refresh="refresh" :flag="canRefresh">
				<!-- <view style="width: 100%;">刷新次数{{ num }}</view> -->
				<view class="content">
					<!-- <view @click="handleShare">分享</view> -->
					<view class="order-nav" :style="'top:' + navBarHeight + 'px'">
						<view class="order-nav-item" v-for="(item, index) in tabs" :key="item.id"
							@click="changeTabs(index)">
							<!-- <text class="iconfont" :class="act == index ? item.actImg : item.img"></text> -->
							<image class="img" :src="act == index ? item.actImg : item.img"></image>
							<view :class="act == index ? 'order-nav-item-act' : ''" class="order-nav-title">
								{{ item.name }}
							</view>
						</view>
					</view>
					<view class="order-list">
						<block v-if="[2,3,5].includes(identity)">
							<view class="none" :style="'height:'+noneHeight+'rpx'">
								<image src="../../../static/none/order.png" mode=""
									style="margin-top: 180rpx;width: 442rpx;height: 354rpx; margin-bottom: 80rpx;">
								</image>
								<view class="" style="">
									当前城市暂无订单
								</view>
							</view>
						</block>
						<order :orderList="list" :vipInfo="vipInfo" :serverTime="serverTime" v-else></order>
					</view>
				</view>
			</refresh>

			<!-- 加载更多 h5端底部导航会遮盖住它 -->
			<view style="background: rgba(216, 216, 216, 0);" v-if="isReachBottom && list.length!=0">
				<uni-load-more :status="more" @clickLoadMore="loadMore"></uni-load-more>
			</view>

			<!-- 资格认证提示 -->
			<view class="modal" @click.stop="closeModal" v-if="visible">
				<view class="modal-content">
					<view class="title">通过职业资格认证，即可接单</view>
					<view class="btn" @click.prevent="goCertificate">去认证</view>
				</view>
			</view>
		</view>

		<Message ref="message" :duration="3000" :top="30" />
		<renew res="renew" @renew="renew" @handleFlag="cancel" @cancel="cancel" :renewData="renewData"
			style="position:fixed;top:0;z-index:999" v-if="flag"></renew>
		<line-order :number="lineNumber" @confirm="lineConfirm('confirm')" @cancel="lineConfirm('cancel')"></line-order>
		<uni-confirm :show="confirmShow" title="请登录后查看详情" @cancel="bindBtn('cancel')" @confirm="bindBtn('confirm')">
		</uni-confirm>

		<!-- <view  style="position: absolute;right: 0;top: 510px; "> -->
		<movable-view :x="x" y="510" direction="all" @change="onChange" style="z-index: 99!important;"
			:class="near ? 'near' : ''" :inertia="true">
			<view class="left" v-if="isShow == false" @click="callPolice">
				<text class="iconfont  left-icon" :class="near ? 'icon-right' : 'icon-back'"></text>
				<text class="title">一键报警</text>
			</view>
			<image src="../../../static/img/index/warn.png" mode="" @click="showModal" class="warn"></image>
			<view class="detail" v-if="isShow">
				<view class="list contact" @tap="addContact">
					<text class="iconfont icon-a-jinjilianxirenpngbeifen list-icon"></text>
					<view>紧急联系人</view>
				</view>
				<view class="list" @click="sharePosition">
					<text class="iconfont icon-a-weizhifenxiangpng list-icon"></text>
					<view>位置分享</view>
				</view>
			</view>
		</movable-view>
		<!-- 分享弹框 -->
		<uni-popup ref="popupShare" type="center" :mask="true" :mask-click="false" name="uni-popup">
			<view class="marks column">
				<view class="cancel" @click="closePopup">×</view>
				<image src="../../../static/img/reward/rewradPop.jpg" mode=""></image>
				<view class="im" @click="handleJump"></view>
			</view>
		</uni-popup>

		
		<!-- </view> -->
		<!-- <view class="mask" v-if="isShow" @click="closeMask" :style="maskStyle"></view> -->
		<!-- 普通弹窗 -->
		<!-- 	<uni-popup ref="popup" type="message">
			<uni-popup-message type="info" :duration="0">
				<text class="title">位置权限使用说明</text>
				<text class="text">请求获取您的位置，是为了给您提供当前同城匹配的可抢单的订单。获取定位信息，当您使用时也可一键报警，保证用户人身财产安全！</text>
			</uni-popup-message>
		</uni-popup> -->
	</movable-area>

</template>
<script>
	// import UniShare from 'uni_modules/uni-share/js_sdk/uni-share.js';
	//     const uniShare = new UniShare();
	import {
		mapState
	} from 'vuex'
	import {
		debounce
	} from '@/common/js/throttle.js'
	import {
		getOrders,
		getNewOrders,
		getMoreOrders,
		allCarouselPicture,
	} from '@/apis/index/index.js'
	import {
		update,
		compareVersion,
		downWgt,
		installWgt,
	} from '@/components/common/renew/renew.js'
	import {
		requestAndroidPermission,
		getLocations,
	} from '../../../common/js/location.js'
	import {
		selectOrderNum
	} from '@/apis/line-order/index.js'
	import {
		selectMessageList
	} from '@/apis/message/index.js'
	import {
		getNewVersion,
		selectNurseVipByNurseId
	} from '@/apis/nurse/index.js'
	import {
		getLoginInfo
	} from '@/apis/login/index.js'
	import uniSwiperDot from '@/components/uni-ui/uni-swiper-dot/uni-swiper-dot.vue'
	import uniLoadMore from '@/components/uni-ui/uni-load-more/uni-load-more.vue'
	import uniPopup from '../../../components/uni-ui/uni-popup/uni-popup.vue'
	import uniPopupMessage from '../../../components/uni-ui/uni-popup-message/uni-popup-message.vue'

	import uniConfirm from '@/components/uni-ui/uni-confirm/uni-confirm.vue'
	import lineOrder from '@/components/common/line-order/index.vue'
	import order from '@/components/common/index-order/index.vue'
	import refresh from '@/components/common/refresh/index.vue'
	import messages from '@/components/common/message/index.vue'
	import callPolice from '@/mixins/call-police/index.vue'
	import renew from '@/components/common/renew/renew.vue'
	import permision from '@/common/js/permission.js'

	export default {
		components: {
			uniConfirm,
			uniSwiperDot,
			uniLoadMore,
			uniPopup,
			uniPopupMessage,
			renew,
			refresh,
			order,
			lineOrder,
			Message: messages,
			
		},
		// 一键报警只能使用混入方式，组件方式引入会超出边界，不知为啥？
		mixins: [callPolice],
		data() {
			return {
				serverTime: '', // 服务器当前时间
				identity: 0,
				// isShow:false,
				cid: '',
				confirmShow: false, //confirm组件显示隐藏
				statusBarHeight: 48, //状态栏高度
				navBarHeight: 92, //导航栏高度：状态栏+44
				navHeihgt: 230, //导航+轮播高度
				current: 0, //轮播图的索引下标
				mode: 'round',
				info: [],
				act: 0,
				scrollTop: '',
				more: 'loading', //more/loading/noMore
				tabs: [{
						name: '时间',
						id: 0,
						actImg: '../../../static/icon/shijian.png',
						img: '../../../static/icon/dis-shijian.png',
					},
					{
						name: '距离',
						id: 1,
						actImg: '../../../static/icon/juli.png',
						img: '../../../static/icon/dis-juli.png',
					},
				],
				num: 0,
				visible: false,
				isShow: false, //是否展示
				canRefresh: true,
				page: {
					pageNum: 1,
					pageSize: 10,
				},
				list: [],
				isReachBottom: false,
				// 0 升序  1倒序
				serveTime: 0, //0时间离得近 1时间远
				distance: 1, //0距离近 1距离远
				finish: false,
				maxTime: '',
				minTime: '',
				newsStatus: '',
				photo: [
					'../../../static/img/index/swiper1.jpg',
					'../../../static/img/index/swiper2.jpg',
					'../../../static/img/index/swiper3.jpg',
					'http://loto.oss-cn-shanghai.aliyuncs.com/email/6a2aafcc14474cb5.png',
				],
				renewData: {},
				flag: false, //提示更新弹窗
				locationShow: 0, //用户取消地址授权会多次执行 判断0调用方法 1不调用
				isLogin: false, //判断是否刚登录
				lineNumber: 0, //线下订单待核对条数
				addressTimer: null, //禁止频繁更新地址
				vipInfo: null
			}
		},
		onLoad() {
			this.clearCache()
			this.flag = false
			// this.getRenew()
			// #ifdef APP-PLUS
			this.getRenew()
			// #endif
			this.initSwiper()
			if (this.$store.state.token) {
				this.getAtte()
				this.getNewsStatus()
			}
			let that = this
			// this.y = this.$store.state.system.windowHeight - 106; //一键报警位置
		},
		onShow() {
			this.$nextTick(() => {
				// 在页面显示时打开弹窗
				// this.$refs.readPopupRef.open()
				// this.$refs.popupShare.open()
			})
			this.selectNurseVipByNurseId()
			this.getAtte1()
			this.isShow = false //关闭一键报警的弹窗
			this.finish = false
			this.$nextTick(() => {
				if (uni.getStorageSync('yaoqing')) return
				this.getLineNum()
			})
			setTimeout(() => {
				this.clearStatus()
				if (this.address) {
					this.init()
				}
			}, 1000)
			return
			let that = this
			// console.log('判断登录-----------', uni.getStorageSync('isLogin'))
			// console.log('判断登录-11----------', uni.getStorageSync('deniedPresentPermission'))
			let fl = uni.getStorageSync('deniedPresentPermission')
			if (!fl) {
				console.log('6666', uni.getStorageSync('deniedPresentPermission'))
				// if((uni.getSystemInfoSync().platform=='android') && (uni.getSystemInfoSync().platform=='MIUI')){
				// 	 let fl = uni.getStorageSync('deniedPresentPermission')
				// 	if(fl!='true'){
				// 		this.$nextTick(() => {
				// 			this.$refs.message.info('位置权限使用说明:请求获取您的位置，是为了给您提供当前同城匹配的可抢单的订单。获取定位信息，当您使用时也可一键报警，保证用户人身财产安全！')
				// 		})
				// 		uni.setStorageSync('deniedPresentPermission','true')
				// 		getLocations();
				// 		this.locationShow = 1
				// 	}
				// } else{
				uni.setStorageSync('deniedPresentPermission', true)
				getLocations()
				// }
			}

			// console.log(this.$store.state.city, '当前城市是-----');
		},

		watch: {
			// showInvite(newV, oldV){
			// 	if(newV){
			// 		this.$nextTick(()=> {
			// 			this.$refs.popupShare.open()
			// 			uni.hideTabBar()
			// 		})
			// 	}
			// },
			address(newV, oldV) {
				let that = this
				this.clearStatus()
				if (newV) {
					that.init()
					return
					// if(this.addressTimer){
					// 	clearTimeout(that.addressTimer)
					// }
					// console.log('watch-------------')
					// that.addressTimer = setTimeout(()=> {

					// },10)
				}
			},
			confirmShow1(newVal, oldVal) {
				console.log(newVal, 'mixins')
				if (newVal) {
					this.confirmShow = true
				}
			},
		},
		computed: {
			noneHeight() {
				return (
					this.$store.state.system.windowHeight -
					this.$store.state.system.statusBarHeight -
					uni.upx2px(368) -
					uni.upx2px(88) -
					44
				)
			},
			...mapState({
				address: (state) => state.address || '',
				showInvite: (state) => state.showInvite,
			}),
			// address() {
			// 	return '杭州'
			// 	// this.$store.state.address
			// },

			// location() {
			// 	return this.$store.state.location
			// },
			// navBgStyle() {
			// 	return `opaaddress:${1 - this.changeNumber};height:${this.navHeihgt}px`;
			// },
			swiperStyle() {
				// transform: scale(${1-this.changeNumber/4}
				return `opacity:${1 - this.changeNumber};`
			},
			// 计算渐变距离百分比
			changeNumber() {
				let start = uni.upx2px(0)
				let end = uni.upx2px(280)
				let H = end - start
				let num = 0
				if (this.scrollTop > start) {
					num = (this.scrollTop - start) / H
				}
				return num > 1 ? 1 : num
			},
			navStyle() {
				if (this.changeNumber > 0) {
					return `background: linear-gradient(90deg, rgba(103, 167, 254, ${this.changeNumber}) 0%, rgba(64, 135, 255, ${this.changeNumber}) 100%)`
				} else {
					return ''
				}
			},
		},
		// 页面滚动,剩余高度是280
		onPageScroll(e) {
			this.scrollTop = e.scrollTop
			this.canRefresh = e.scrollTop == 0 ? true : false
		},
		// 页面触底
		onReachBottom() {
			console.log('页面触底了---')
			if (this.more == 'noMore') return
			this.isReachBottom = true

			// 显示加载更多数据
			this.more = 'loading'
			this.page.pageNum++
			this.init()
		},
		mounted() {},
		onHide() {
			this.lineNumber = 0
			uni.removeStorageSync('isLogin')
		},
		methods: {
			getAtte1() {
				this.identity = this.$store.state.userInfo.identity
				if ([2, 3].includes(this.$store.state.userInfo.identity)) {
					plus.nativeUI.toast('抱歉，当前城市下暂无相关订单。')
				}
			},
			closePopup() {
				this.$store.commit('setShowInvite', false)
				this.$refs.popupShare.close()
				uni.showTabBar()
			},
			handleJump() {
				if (!this.$store.state.nameStatus) {
					uni.showToast({
						title: '请先完成实名认证',
						icon: 'none',
					})
					return
				}
				// 未职业资格认证
				if (!this.$store.state.attestStatus) {
					uni.showToast({
						title: '请先完成职业资格认证',
						icon: 'none',
					})
					return
				}
				this.closePopup()
				uni.navigateTo({
					url: '/pages/act/index',
				})
			},
			clearCache() {
				// #ifdef APP-PLUS
				var self = this
				//使用plus.cache.clear 清除应用中的缓存数据
				plus.cache.clear()
				// #endif
			},
			//confirm 确定取消
			async bindBtn(type) {
				console.log(type)
				if (type == 'confirm') {
					uni.navigateTo({
						url: '../../login-register/login/login',
					})
				}
				this.confirmShow = false
				this.confirmShow1 = false
			},
			//线下订单事件
			lineConfirm(type) {
				console.log(type, '点击了确定----')
				this.lineNumber = 0
				this.isLogin = false
				uni.removeStorageSync('isLogin')
				if (type == 'confirm') {
					uni.navigateTo({
						url: '../../line-order/line-order/line-order',
					})
				} else {
					if (this.showInvite) {
						// 关闭分享弹窗
						// this.$refs.popupShare.open()
						// uni.hideTabBar()
					}
				}
			},
			//更新组件显示隐藏
			async getRenew() {
				// await plus.runtime.getProperty(plus.runtime.appid, function(widgetInfo) {
				// 	console.log(widgetInfo.versionCode, " ========== 262")
				// 	if (widgetInfo.versionCode == 262) {
				// 		this.flag = true
				// 		return
				// 	}
				// })
				let res = await update()
				// console.log(res.data.object, ')))))))))))))))')
				// console.log(res.data, '--------------------')
				if (res.data.success) {
					this.flag = true
					this.renewData = res.data.object
				} else {
					// if(this.$store.state.launch==1) {
					// 	this.$store.commit('setLaunch',2)
					// 	return
					// }
					// if(this.$store.state.launch == 2){
					// 	this.$tore.commit('setLaunch',3)
					// 	setTimeout(()=>{
					// 		plus.runtime.restart();
					// 	},1000)
					// }
					this.flag = false
				}
			},
			//线下订单提示
			async getLineNum() {
				console.log('onLoad----------------')
				console.log(this.$store.state.userInfo.id)
				if (!this.$store.state.userInfo.id) {
					return
				}
				// console.log('22222')
				let res = await selectOrderNum({
					nurseId: this.$store.state.userInfo.id,
				})
				uni.setStorageSync('yaoqing', true)
				console.log('======000000=====', res)
				if (res.success) {
					this.lineNumber = res.object
					if (this.lineNumber < 1) {
						if (this.showInvite) {
							// 关闭分享弹窗
							// this.$refs.popupShare.open()
							// uni.hideTabBar()
						}
					}
					console.log()
				} else {
					console.log('000000')
					if (this.showInvite) {
						// 关闭分享弹窗
						// this.$refs.popupShare.open()
						// uni.hideTabBar()
					}
				}
				console.log('订单数量', res)
			},
			cancel() {
				uni.showTabBar()
				this.flag = false
				// this.$refs.renew.cancel()
			},
			renew() {
				// this.$refs.renew.renew()
			},
			//轮播图操作
			guide() {
				let _this = this
				let num = this.current
				uni.previewImage({
					urls: _this.photo,
					current: _this.photo[num], // 当前显示图片的http链接，默认是第一个
					success: function(res) {},
					fail: function(res) {},
					complete: function(res) {},
				})
			},
			init: debounce(
				async function() {
						this.finish = false
						if (!this.isReachBottom) {
							// #ifdef APP
							plus.nativeUI.showWaiting()
							// #endif
						}
						if (!this.address) {
							// 关闭加载……
							// #ifdef APP-PLUS
							plus.nativeUI.closeWaiting()
							plus.nativeUI.toast('请选择地理位置')
							// #endif
							return
						}
						if (this.page.pageNum == 1) {
							this.list = []
						}
						let data = {
							distance: this.distance,
							latitude: String(this.$store.state.latitude),
							longitude: String(this.$store.state.longitude),
							pageNum: this.page.pageNum,
							pageSize: this.page.pageSize,
							serveTime: this.serveTime,
							// 城市
							nurseCity: this.$store.state.city,
						}
						let res = await getOrders(data)
						console.log("结果",res)
						if (res.success) {
							this.serverTime = res.data
							if (res.object.list.length > 0) {
								if (this.isReachBottom) {
									this.list.push(...res.object.list)
								} else {
									this.list = res.object.list
								}
							} else {
								// app端有bug……
								// uni.showToast({
								// 	title:'抱歉，当前城市下暂无相关订单。',
								// 	icon:'none'
								// })
								if (this.isReachBottom) {
									this.more = 'noMore'
									this.page.pageNum = 1
								} else {
									// #ifdef APP-PLUS
									plus.nativeUI.toast(
										'抱歉，当前城市下暂无相关订单。'
									)
									// #endif
									this.list = []
									this.isReachBottom = false
								}
							}
							// #ifdef APP-PLUS
							plus.nativeUI.closeWaiting()
							// #endif
						} else {
							// 关闭加载……
							// #ifdef APP-PLUS 
							plus.nativeUI.closeWaiting()
							// #endif
						}

						this.finish = true
					},
					600,
					true
			),
			selectNurseVipByNurseId() {
				if (this.$store.state.token) { 
					let obj = {
						nurseId: this.$store.state.userInfo.id
					}
					selectNurseVipByNurseId(obj).then(res=>{
						console.log("会员信息",res)
						this.vipInfo = res.object
					})
				}
				
			},
			// 首页轮播图
			async initSwiper() {
				if (plus.os.name == 'Android') {
					this.navHeihgt = 230
				} else {
					this.navHeihgt = 262
				}
				let res = await allCarouselPicture({
					type: 1,
				})
				if (res.success) {
					setTimeout(() => {
						if (this.info.length < 3) {
							this.info = res.object
							console.log('护士端轮播图', this.info)
						}
					}, 10)
				} else {
					return ''
				}
				console.log('轮播图', plus.os.name);

			},
			// 切换轮播图
			change(e) {
				this.current = e.detail.current
			},
			loadMore() {
				// console.log('加载更多');
			},
			refresh(done) {
				this.showRenew = false
				this.initSwiper()
				this.clearStatus()
				this.init()
				// 不加个延迟好像太快了有点
				setTimeout(() => {
					done()
				}, 500)
			},
			// 选择地址
			selectAddress() {
				console.log('定位')
				// 如果有城市
				if (this.address) {
					let location =
						this.$store.state.latitude +
						',' +
						this.$store.state.longitude
					let city = this.$store.state.city
					uni.navigateTo({
						url: '../../address/select-address/select-address?address=' +
							this.address +
							'&location=' +
							location +
							'&city=' +
							city,
					})
				} else {
					uni.navigateTo({
						url: '../../address/select-address/select-address',
					})
				}
			},
			// 切换tab选项
			changeTabs(index) {
				this.act = index
				if (index == 0) {
					// 时间0近 1远
					this.serveTime = 0
					this.distance = 1
					// this.serveTime == 1 ? this.serveTime = 0 : this.serveTime = 1;
				} else {
					// 距离0近 1远
					this.distance = 0
					this.serveTime = 1
					// this.distance == 1 ? this.distance = 0 : this.distance = 1;
				}
				// 页面滚动到相应位置，如果此时导航已经sticky了，则计算页面向上滚动距离，pageScroll- 导航高度-轮播-顶部高度

				this.clearStatus()
				this.list = []
				this.init()
			},
			// 清除状态
			clearStatus() {
				this.page.pageNum = 1
				this.isReachBottom = false
				this.more = 'more'
			},
			// 消息
			goNews() {
				uni.navigateTo({
					url: '../../news/news/news',
				})
			},
			//是否有新消息
			async getNewsStatus() {
				// let res1 = await selectMessageList({
				// 	messageType: 0,
				// 	nurseId: this.$store.state.userInfo.id,
				// })
				let res2 = await selectMessageList({
					messageType: 1,
					nurseId: this.$store.state.userInfo.id,
				})
				// res1.data == 0 ||
				if (res2.data == 0) {
					this.newsStatus = true
				} else {
					this.newsStatus = false
				}
			},
			//用户实名 和 认证状态
			async getAtte() {

				if (!this.$store.state.attestStatus) {
					let info = uni.getStorageSync('userInfo') || {
						id: '',
					}
					let nurseId = info.id || ''
					return
					let res = await getLoginInfo({
						nurseId,
					})
					if (res.success) {
						console.log(res)
						this.userInfo = res.object
						let attestStatus =
							res.object.attestStatus == 2 ? true : false
						this.$store.commit('setAttestStatus', attestStatus)
						this.$store.commit('setUserInfo', res.object)
						this.$store.commit('disableToLogin', res.object.status)
					}
				}
			},
		},
	}
</script>
<style scoped lang="less">
	@import url('~@/mixins/call-police/index.less'); //一键报警样式

	page {
		// app端不生效
		background: #f3f6f6;
	}
	
	// app端生效
	.index {
		// height: 100vh;
		background-color: #f3f6f6;
	}

	.nav {
		position: relative;
		width: 100%;
		background: #67A7FE;

		// backdrop-filter: blur(10px);
		// background-size: 100% 100%;
		// .nav-bg {
		// 	position: absolute;
		// 	z-index: 1;
		// 	top: 0;
		// }
		.user-status-bar {
			width: 100%;
			position: fixed;
			top: 0;
			z-index: 3;

			.status-bar {
				position: absolute;
				z-index: 123;
				width: 100%;
				overflow: hidden;

				.status-bar-title {
					height: 88rpx;
					display: flex;
					justify-content: space-between;
					align-items: center;
					font-size: 28rpx;
					font-family: PingFangSC-Regular, PingFang SC;
					font-weight: 400;
					color: #ffffff;
					padding: 0 26rpx;

					.l {
						display: flex;
						align-items: center;

						.address {
							margin-right: 8rpx;
							max-width: 350rpx;
						}
					}

					.r {
						display: flex;
						align-items: center;

						image {
							// margin-right: 12rpx;
						}

						.icon-xiaoxitongzhi {
							padding-right: 12rpx;
						}

						.news {
							position: relative;

							&:after {
								content: '';
								position: absolute;
								top: 0;
								right: 10rpx;
								display: block;
								width: 8rpx;
								height: 8rpx;
								background-color: #ff4f4f;
								border-radius: 50%;
							}
						}
					}
				}
			}

			.status-bar-blur {
				position: absolute;
				z-index: 1;
				width: 100%;
				// background: url('~@/static/img/index/title_bg.png');
				opacity: 0.3;
			}
		}
	}

	// 高斯模糊
	.status-bar::after {
		content: '';
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background: inherit;
		filter: blur(10rpx);
		z-index: -1;
	}

	.index-swiper {
		box-sizing: border-box;
		height: calc(100% - 184rpx);
		width: 100vw;
		// width: 100vw;
		background: red;
		background: linear-gradient(180deg, #67A7FE 0%, #B9DCFF 100%);
		position: absolute;
		padding: 0 24rpx 0rpx 26rpx;
		z-index: 1;
		margin-top: 184rpx;

		.swiper-box {
			width: 700rpx;
			height: 264rpx;

			.swiper-img {
				width: 100%;
				height: 264rpx;
				border-radius: 8rpx;
			}
		}
	}

	/* 导航 */
	.order-nav {
		position: sticky;
		display: flex;
		align-items: center;
		height: 88rpx;
		background-color: #ffffff;
		z-index: 1;
		box-sizing: border-box;

		.order-nav-item {
			margin: 0 26rpx;
			display: flex;
			align-items: center;
			margin-right: 40rpx;
			font-size: 28rpx;
			font-weight: 400;
			font-family: PingFangSC-Regular, PingFang SC;
			color: rgba(0, 0, 0, 0.38);

			.order-nav-title {
				margin-left: 8rpx;
			}

			.img {
				width: 36rpx;
				height: 36rpx;
			}
		}

		.order-nav-item-act {
			font-weight: 500;
			color: rgba(0, 0, 0, 0.87);
		}
	}

	.none {
		// height: 100vh;
		font-size: 36rpx;
		font-family: PingFangSC-Medium, PingFang SC;
		text-align: center;

		image {
			display: block;
			margin: 0 auto;
		}
	}

	.move {
		width: 137rpx;
		height: 58rpx;
		transform-origin: center center;
		transform: translateX(253rpx) translateY(738rpx) translateZ(0rpx) scale(1);
		will-change: auto;

		image {
			width: 58rpx;
			height: 58rpx;
			display: flex;
		}
	}

	.marks {
		position: relative;
		top: -100rpx;
		width: 804rpx;
		height: 812rpx;

		.cancel {
			position: relative;
			top: 125rpx;
			right: 120rpx;
			text-align: right;
			color: #fff;
			font-size: 48rpx;
			z-index: 99;
		}

		.im {
			opacity: 0;
			position: absolute;
			bottom: 40px;
			left: 100px;
			width: 200px;
			height: 50px;
			background-color: yellow;
		}

		image {
			height: 100%;
			width: 100%;
		}
	}
</style>